package common;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Igor Demidov
 * Date: 19.02.13
 * Time: 12:15
 */
public class SimpleUser implements Serializable {
    public String login;
    public String password;
    public List<Email> inbox;
    public List<Email> outbox;

    SimpleUser(String login, String password) {
        this.login = login;
        this.password = password;
        inbox = new LinkedList<Email>();
        outbox = new LinkedList<Email>();
    }

    @Override
    public String toString() {
        return "Login: " + login + ". Password: " + password + ". Inbox size: " + inbox.size() + ". Outbox size: " + outbox.size();
    }
}
